
namespace UniversalAdmin.Domain.Repositories;
public interface IRepository<T> where T : class{

    IQueryable<T> Table { get; }
    IQueryable<T> All { get; }
  Task<T?> GetByIdAsync(Guid Id);
    Task<IEnumerable<T>> GetAllAsync();
    Task<T> CreatedAsync(T entity);
    Task<T> UpdateAsync(T entity);
    Task DeleteAsync(Guid Id);
    void AttachEntity(T entity);
}